# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dateutils
pkgver=0.4.7
pkgrel=0
pkgdesc="Utilities for fast date-time calculations and conversion"
url="http://hroptatyr.github.com/dateutils/"
arch="all"
license="BSD-3-Clause"
makedepends="m4 texinfo automake autoconf linux-headers"
subpackages="$pkgname-doc"
source="https://bitbucket.org/hroptatyr/dateutils/downloads/dateutils-$pkgver.tar.xz
	remove-sysctl-include.patch"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-static=no
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="480943c32585efd8f42958d6e7d3304a37568f2134c9561d6e0b38f4719fd149ec7e55c559a5e73e97e1c9d217f3d53fe76a7e6a9d3114c040915ebf48db4666  dateutils-0.4.7.tar.xz
a31647222867996e23fa8066d13cfe19a4aac7d9ec86b0f998665ba60883454a1843edabd9f49af4a313a582b33cb043b8dead66cbdb4b72bd4918fac435543d  remove-sysctl-include.patch"
